package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.WGood;
import com.ruoyi.system.domain.WOrderGood;
import com.ruoyi.system.domain.vo.WGoodExcel;

public class GoodUtil {

	
	public static boolean checkEqu(WGood wGood, WOrderGood e) {
		
		if(wGood.getComment().equals(e.getComment()) && e.getPn().equals(wGood.getPn())
				&& e.getDesignator().equals(wGood.getDesignator())
				&& e.getDimension().equals(wGood.getDimension())
				&& e.getFootprint().equals(wGood.getFootprint())
				&& e.getManufacture().equals(wGood.getManufacture())){
			return true;
		}
		
		return false;
	}
	public static boolean checkEqu(WGood wGood,WGoodExcel e) {
		
		if(wGood.getComment().equals(e.getComment()) && e.getPn().equals(wGood.getPn())
				&& e.getDesignator().equals(wGood.getDesignator())
				&& e.getDimension().equals(wGood.getDimension())
				&& e.getFootprint().equals(wGood.getFootprint())
				&& e.getManufacture().equals(wGood.getManufacture())){
			return true;
		}
		
		return false;
	}
}
